package org.dromara.common.encrypt.properties

import org.dromara.common.encrypt.enumd.AlgorithmType
import org.dromara.common.encrypt.enumd.EncodeType
import org.springframework.boot.context.properties.ConfigurationProperties

/**
 * 加解密属性配置类
 *
 * @author 老马
 * @version 4.6.0
 * @updater LikeYouDo
 * @date 2025/1/14 14:06
 */
@ConfigurationProperties(prefix = "mybatis-encryptor")
open class EncryptorProperties(
    /**
     * 过滤开关
     */
    var enable: Boolean? = null,

    /**
     * 默认算法
     */
    var algorithm: AlgorithmType? = null,

    /**
     * 安全秘钥
     */
    var password: String? = null,

    /**
     * 公钥
     */
    var publicKey: String? = null,

    /**
     * 私钥
     */
    var privateKey: String? = null,

    /**
     * 编码方式，base64/hex
     */
    var encode: EncodeType? = null,
)
